fix: statement input blocks disappearing#8203
fix: statement input blocks disappearing#8203BeksOmega merged 1 commit intoRaspberryPiFoundation:developfrom
Conversation
|
The explanation makes sense, as does the fix. Thanks @FlorianTschimben for the repro steps. In general, if there's other state the reset between drags, is there an advantage to doing it at the start of the next drag vs at the end of the previous drag? It feels like it's cleanup so I expected it to be at the end of a drag. |
There isn't any other state we need to set to |
(cherry picked from commit dc91c3a)
The basics
The details
Resolves
Fixes #8189
Proposed Changes
The issue was we weren't properly clearing the state of the current candidate connection, so the preview was incorrect causing blocks to disconnect and disappear, because the place they were trying to be inserted was invalid.
To explain that slightly more linearly:
nullso it can preview, but when that happens it tries to reorder its DOM position, which doesn't work because it's already on the drag layer, where it's not expected to be, causing the error from the original issue.Test Coverage
Manually tested.
Documentation
N/A
Additional Information
We should put out a patch for this.